package zx.x.modules.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;

import zx.x.modules.app.dao.MerchantRoomTypeDao;
import zx.x.modules.app.entity.MerchantRoomTypeEntity;
import zx.x.modules.app.service.MerchantRoomTypeService;
import zx.x.modules.app.vo.MerchantRoomTypeVo;


@Service("merchantRoomTypeService")
public class MerchantRoomTypeServiceImpl extends ServiceImpl<MerchantRoomTypeDao, MerchantRoomTypeEntity> implements MerchantRoomTypeService {
    @Autowired
    private MerchantRoomTypeDao dao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MerchantRoomTypeEntity> page = this.page(
                new Query<MerchantRoomTypeEntity>().getPage(params),
                new QueryWrapper<MerchantRoomTypeEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<MerchantRoomTypeVo> selectRoomTypeList(MerchantRoomTypeVo dto) {
        return dao.selectRoomTypeList(dto);
    }

    @Override
    public List<MerchantRoomTypeVo> selectMsRoomTypeList(MerchantRoomTypeVo dto) {
        return dao.selectMsRoomTypeList(dto);
    }

}